{extend name="_container/add"}
{block name="html_head"}
{/block}
{block name="content"}
<input type="hidden" name="id" value="{$method.id}">


<div class="layui-form-item">
  <label class="layui-form-label required">{$self_table.comment}<span></span></label>
  <div class="layui-input-inline">
    {foreach $self_table->iField as $field}
    <div>
      <input type="checkbox" name="in[]" title="{$field.comment}" value="{$field.id}" {:in_array($field.id, $in_field_ids)?'checked':''}>
      {if $method['type'] == 'list'}
      <select name="id__{$field.id}" >
        <option value="=" {$in_condition[$field['id']]=='='?'selected':''}>=</option>
        <option value="like" {$in_condition[$field['id']]=='like'?'selected':''}>like</option>
        <option value="between_date" {$in_condition[$field['id']]=='between_date'?'selected':''}>between_date</option>
      </select>
      {/if}
    </div>
    {/foreach}
  </div>
  <div class="layui-form-mid layui-word-aux"></div>
</div>


{foreach $tables as $table}
<div class="layui-form-item">
  <label class="layui-form-label required">{$table.comment}<span></span></label>
  <div class="layui-input-inline">
    {foreach $table->iField as $field}
    <div>
      <input type="checkbox" name="in[]" title="{$field.comment}" value="{$field.id}" {:in_array($field.id, $in_field_ids)?'checked':''}>
      {if $method['type'] == 'list'}
      <select name="id__{$field.id}" >
        <option value="=" {$in_condition[$field['id']]=='='?'selected':''}>=</option>
        <option value="like" {$in_condition[$field['id']]=='like'?'selected':''}>like</option>
        <option value="between_date" {$in_condition[$field['id']]=='between_date'?'selected':''}>between_date</option>
      </select>
      {/if}
    </div>
    {/foreach}
  </div>
  <div class="layui-form-mid layui-word-aux"></div>
</div>
{/foreach}

{if $method['type'] == 'list'}
<hr/>
<hr/>
<hr/>
<hr/>
<hr/>
<div class="layui-form-item">
  <label class="layui-form-label required">{$self_table.comment}<span></span></label>
  <div class="layui-input-inline">
    {foreach $self_table->iField as $field}
    <div>
      <input type="checkbox" name="out[]" title="{$field.comment}" value="{$field.id}" {:in_array($field.id, $out_field_ids)?'checked':''}>
    </div>
    {/foreach}
  </div>
  <div class="layui-form-mid layui-word-aux"></div>
</div>


{foreach $tables as $table}
<div class="layui-form-item">
  <label class="layui-form-label required">{$table.comment}<span></span></label>
  <div class="layui-input-inline">
    {foreach $table->iField as $field}
    <div>
      <input type="checkbox" name="out[]" title="{$field.comment}" value="{$field.id}" {:in_array($field.id, $out_field_ids)?'checked':''}>
    </div>
    {/foreach}
  </div>
  <div class="layui-form-mid layui-word-aux"></div>
</div>
{/foreach}
{/if}




<div style="height: 209px"></div>
{/block}
{block name="js"}

<script>
  function save_form3(obj) {
    save_form2(obj);
    return false;
  }
</script>

<script>

</script>



{/block}

{/extend}
